package com.dzpk.gameserver.enumeration;

public enum TriggerEnum {
    ROLE_LEVELUP(101),
    MONEY_ADD(102),
    COMPLETE_MISSION(103),
    PASS_COPY(104),
    EQUIP(105),
    EQUIP_MAKE(106),
    EQUIP_STRENGTHEN(107),
    CHAT(108),
    KNOCK_EGG(110),
    BEAST_GROW_UP(111),
    FIRST_CHARGE(112),
    LIFESTONE_EQUIP(113),
    LIFESTONE_REFINE(114),
    LIGHT_DRAGONBALL(115),
    PVP_END(116),
    PVAI_END(117),
    HONOR_ADD(118),
    EQUIP_OFF(119),
    GET_ITEM(120),
    VIP(121),
    PASS_CHAPTER(122),
    LEVEL_UP(123),
    OPEN_BOX(124),
    TOWER_PASS(125),
    BUY_RANDOM_MALL(126),
    UNION_WAR_BE_WAR(130),
    UNION_WAR_OVER(131),
    UNION_WAR_REVENGE_WIN(132),
    UNION_WAR_REVENGE_LOST(133),
    UNION_WAR_VOTE_FLOWER(134),
    UNION_WAR_VOTE_EGG(135),
    UNION_WAR_FIRST_WINNER(136),
    UNION_WAR_KILL3(137),
    UNION_WAR_KILL5(138),
    UNION_WAR_KILL7(139),
    UNION_WAR_KILL10(140),
    UNION_WAR_KILL15(141),
    PUSH_UNFAMILIAR(142), // 推送陌生人
    PUSH_PVE_MORE(143), // 多人PVE推送好友提示
    PUSH_PVP(144), // PVP推送好友
    PUSH_PVAI(145), // 巅峰之战推送好友
    PVP_1V1_10_WIN(1), // 十连胜处理 
    ;
    TriggerEnum(int id) {
        this.id = id;
    }

    public static TriggerEnum getKillsEnum(int kills) {
        switch (kills) {
            case 3:
                return UNION_WAR_KILL3;
            case 5:
                return UNION_WAR_KILL5;
            case 7:
                return UNION_WAR_KILL7;
            case 10:
                return UNION_WAR_KILL10;
            case 15:
                return UNION_WAR_KILL15;
        }
        return null;
    }

    public static int getKillsId(int kills) {
        TriggerEnum killEnum = getKillsEnum(kills);
        return killEnum == null ? 0 : killEnum.id;
    }

    public int getId() {
        return this.id;
    }

    private int id;
}
